\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{assn}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[11pt, letterpaper]{article}
\RequirePackage{fullpage}

%% good packages to have around
\usepackage{enumerate, simplemargins, euler, amsmath, amssymb, float}

%% nicer looking captions for float envs; docs here:
%% http://www.ctan.org/tex-archive/macros/latex/contrib/caption/caption-eng.pdf
\usepackage[textfont=it,labelfont=bf]{caption}

%% math shortcuts, modularized out into another file
\include{mathshortcuts}

%% header stuff
\newcommand{\TheGuru}{}
\newcommand{\TheDueDate}{}
\newcommand{\TheAssnNum}{}
\newcommand{\TheCourse}{}
\newcommand{\by}[1]{\renewcommand{\TheGuru}{#1}}
\newcommand{\due}[1]{\renewcommand{\TheDueDate}{#1}}
\newcommand{\num}[1]{\renewcommand{\TheAssnNum}{#1}}
\newcommand{\for}[1]{\renewcommand{\TheCourse}{#1}}

\newcommand{\agnote}[1]{\medskip\noindent{\textbf{#1}}}

\newcommand{\MakeHeader}[4]{
  \hspace*{-10mm} 
  \framebox{
    \begin{minipage}[t]{\textwidth}
      \vspace{1ex} 

      {\Large\bf  #4} \hfill {\large {\bf Student:} {\sf #2}}\\[1ex]

      {\Large \bf #1} \hfill Due: #3
      \vspace{1ex}

    \end{minipage}
  }

  \vskip 0.3in
}

\newenvironment{question*}[2]
               {\section*{Q.#1 \quad #2}}
               {\medskip}

\newenvironment{proof}[1]
               {\noindent \textbf{Claim}: \begin{quote} #1 \end{quote}
                 \textbf{Proof}: \begin{quote}}
               {\end{quote}}


\newcounter{cnum}
\newenvironment{question}[1]
{\addtocounter{cnum}{1}\section*{Q.\arabic{cnum}\quad #1}}
{\medskip}

\AtBeginDocument{\MakeHeader{\TheAssnNum}{\TheGuru}{\TheDueDate}{\TheCourse}}
